package dev.ece.test;

import java.beans.PropertyChangeSupport;

public class Prop {

	private String name;
	
	private String sex;

	private PropertyChangeSupport propertyChangeSupport;
	
	public Prop() {
		propertyChangeSupport = new PropertyChangeSupport(this);
	}
	
	public PropertyChangeSupport getPropertyChangeSupport() {
		return propertyChangeSupport;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		String old = this.name;
		this.name = name;
		getPropertyChangeSupport().firePropertyChange("name", old, name);
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}
	
}
